]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Reduce space between window picker and dash
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 8 Aug 2012 21:02:35 +0000 (18:02 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 23 Oct 2012 19:12:45 +0000 (15:12 -0400)
Do this in a hacky way by hardcoding this, for now. When we land
search rework, we can fix this.

https://bugzilla.gnome.org/show_bug.cgi?id=582650

js/ui/overview.js

index 729c33719aa79b36270e91e4cbef01ce0ee90a40..fdfc65c5081766493fc8ba624e45f83bea42b0cc 100644 (file)
@@ -23,8 +23,8 @@ const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
 // Time for initial animation going into Overview mode
 const ANIMATION_TIME = 0.25;
 
-// We split the screen vertically between the dash and the view selector.
-const DASH_SPLIT_FRACTION = 0.1;
+// XXX -- grab this automatically. Hard to do.
+const DASH_MAX_WIDTH = 96;
 
 const DND_WINDOW_SWITCH_TIMEOUT = 1250;
 
@@ -502,7 +502,7 @@ const Overview = new Lang.Class({
         let searchX = (primary.width - searchWidth) / 2;
         let searchY = contentY + this._spacing;
 
-        let dashWidth = Math.round(DASH_SPLIT_FRACTION * primary.width);
+        let dashWidth = DASH_MAX_WIDTH;
         let dashY = searchY + searchHeight + this._spacing;
         let dashX;
         if (rtl) {